<?php
// +----------------------------------------------------------------------
// | WoShiMaiJia Projcet 
// +----------------------------------------------------------------------
// | Copyright (c) 2010 http://woshimaijia.com All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: xinqiyang <517577550@qq.com>
// +----------------------------------------------------------------------
/**
 * topic model
 * @author xinqiyang
 * @date   2010-6-20
 *
 */
 class TopicViewModel extends ViewModel
 {
 	public $viewFields = array(
 	  'topic' => array('id','title','status','postcount','lastreplytime','createtime','user_id'),
 	  'user' =>  array('id','enname','cnname'),
 	  'post'=>array('topic_id','content','_on'=>'topic.id=post.topic_id and user_id=user.id'),
 	);
 }
 
?>